package work.mediway.mdm.controller.util;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import work.mediway.mdm.core.util.XmlUtils;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/9/30
 */
@Api(tags = "项目工具模块")
@ApiSupport(order = 99)
@Validated
@RestController
@RequestMapping("util")
@RequiredArgsConstructor
public class CommonUtilController {

    @ApiOperation(value = "XML2Json")
    @ApiOperationSupport(order = 3)
    @GetMapping("xml2json")
    public Object xml2Json(String data) {
        return XmlUtils.xml2Json(data);
    }

}












